/*
 * Wikikat -  A software to help in the categorization of Wikipedia articles.
 * Copyright (C) 2011 Asier Sarasua Garmendia
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * Hau software librea da.
 */

wikikat.onFirefoxLoad = function(event) {
  document.getElementById("contentAreaContextMenu")
          .addEventListener("popupshowing", function (e){ wikikat.showFirefoxContextMenu(e); }, false);
};

wikikat.showFirefoxContextMenu = function(event) {
  // show or hide the menuitem based on what the context menu is on
  document.getElementById("context-Wikikat").hidden = gContextMenu.onImage;
};

window.addEventListener("load", wikikat.onFirefoxLoad, false);
